package com.foreknow.demo5;

/**
 * 员工类
 * JavaBean:就是一个普通的Java类，只包含get/set方法和构造方法
 * 规范： 1. 类名与数据库表名对应  2. 类中的属性名与表中的列名对应
 */
public class Employee {
    //编号
    private String eid;
    //姓名
    private String name;
    //密码
    private String pass;
    //工资
    private double salary;
    //所在部门
    private String dept;

    public Employee() {

    }

    //创建一个构造方法给以上属性进行初始化
    public Employee(String eid,String name,String pass,double salary,String dept) {
        this.eid = eid;
        this.name = name;
        this.pass = pass;
        this.salary = salary;
        this.dept = dept;
    }


    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }


}
